package com.wj.tool.common.exception.message;

public class SuccessMessage extends ApplicationMessage {
    public static final int SUCCESS_CODE = 10000;

    public static SuccessMessage successful() {
        return new SuccessMessage(10000, "successful", MessageType.SYSTEM);
    }

    public static SuccessMessage successful(String message) {
        return new SuccessMessage(10000, message, MessageType.SYSTEM);
    }

    private SuccessMessage(int code, String message, MessageType type) {
        super(code, message, type);
    }
}